package com.miracle9.game.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;

@Entity
public class User extends BaseEntity {

    private int gameId;
    @Column(length = 50, nullable = false, unique = true)
    private String username;
    @Column(length = 10, nullable = false, unique = true)
    private String nickname;
    private String name;
    private char sex;
    private String password;
    private String phone;
    private String card;
    private String question;
    private String answer;
    private String registDate;
    private String loginDate;
    private int status = 0;
    private int overflow = 0;
    private int gameGold = 0;
    private int expeGold = 0;
    private double levelScore = 0.0D;
    private int gameScore = 0;
    private int expeScore = 0;
    private int level = 1;
    private int photoId = 1;
    private int lastDeskId;
    private int shutupStatus = 0;
    private int lastGame;
    private int type;
    private int expiryNum = 0;
    private int payMoney;
    private int promoterId;
    private String promoterName;
    private int warningStatus = 0;
    @Transient
    private int borrow;
    @Transient
    private int displayStatus;
    @Transient
    private int currentGameScore;
    private int security;
    private int lottery;
    private int safeBox;
    private int boxGameGold;
    private int boxLottery;
    private String bindingName;
    private String shareClearingTime;
    private int subUserCount;
    private int specialMark;
    private int usercontrol;
    private int controlType;
    private int controlExpire;
    private int maxGold;
    private int fishControlValue;
    @Column(columnDefinition = "INT default 0")
    private int language;
    @Transient
    private int currentDesk;
    @Transient
    private String currentDeskName;
    @Transient
    private int currentGold;

    //上级id
    private int parentId;

    //下级人数
    private int sonNUm;

    //昨日收益
    private int income;


    //待领取金额
    private int unincome;

    //累计收益
    private int totalIncome;

    //充值活动，第一次充值有效 0 未参与 1 参与
    private int rechargeActivity = 0;


    public int getUnincome() {
        return unincome;
    }

    public void setUnincome(int unincome) {
        this.unincome = unincome;
    }

    public int getRechargeActivity() {
        return rechargeActivity;
    }

    public void setRechargeActivity(int rechargeActivity) {
        this.rechargeActivity = rechargeActivity;
    }

    public int getIncome() {
        return income;
    }

    public void setIncome(int income) {
        this.income = income;
    }

    public int getTotalIncome() {
        return totalIncome;
    }

    public void setTotalIncome(int totalIncome) {
        this.totalIncome = totalIncome;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getSonNUm() {
        return sonNUm;
    }

    public void setSonNUm(int sonNUm) {
        this.sonNUm = sonNUm;
    }

    public void setGameId(int gameId) {
        this.gameId = gameId;
    }
    public int getLanguage() {
        return language;
    }
    public void setLanguage(int language) {
        this.language = language;
    }
    public int getCurrentDesk() {
        return currentDesk;
    }
    public void setCurrentDesk(int currentDesk) {
        this.currentDesk = currentDesk;
    }
    public String getCurrentDeskName() {
        return currentDeskName;
    }
    public void setCurrentDeskName(String currentDeskName) {
        this.currentDeskName = currentDeskName;
    }
    public int getCurrentGold() {
        return currentGold;
    }
    public void setCurrentGold(int currentGold) {
        this.currentGold = currentGold;
    }
    public int getControlType() {
        return controlType;
    }
    public void setControlType(int controlType) {
        this.controlType = controlType;
    }
    public int getControlExpire() {
        return controlExpire;
    }
    public void setControlExpire(int controlExpire) {
        this.controlExpire = controlExpire;
    }
    public int getFishControlValue() {
        return fishControlValue;
    }
    public void setFishControlValue(int fishControlValue) {
        this.fishControlValue = fishControlValue;
    }
    public int getMaxGold() {
        return maxGold;
    }
    public void setMaxGold(int maxGold) {
        this.maxGold = maxGold;
    }
    public int getGameId() {
        return getId();
    }
    public String getBindingName() {
        return this.bindingName;
    }

    public void setBindingName(String bindingName) {
        this.bindingName = bindingName;
    }

    public String getShareClearingTime() {
        return this.shareClearingTime;
    }

    public void setShareClearingTime(String shareClearingTime) {
        this.shareClearingTime = shareClearingTime;
    }

    public int getSubUserCount() {
        return this.subUserCount;
    }

    public void setSubUserCount(int subUserCount) {
        this.subUserCount = subUserCount;
    }

    public int getSpecialMark() {
        return this.specialMark;
    }

    public void setSpecialMark(int specialMark) {
        this.specialMark = specialMark;
    }

    public int getSecurity() {
        return this.security;
    }

    public void setSecurity(int security) {
        this.security = security;
    }

    public int getLottery() {
        return this.lottery;
    }

    public void setLottery(int lottery) {
        this.lottery = lottery;
    }

    public int getSafeBox() {
        return this.safeBox;
    }

    public void setSafeBox(int safeBox) {
        this.safeBox = safeBox;
    }

    public int getBoxGameGold() {
        return this.boxGameGold;
    }

    public void setBoxGameGold(int boxGameGold) {
        this.boxGameGold = boxGameGold;
    }

    public int getBoxLottery() {
        return this.boxLottery;
    }

    public void setBoxLottery(int boxLottery) {
        this.boxLottery = boxLottery;
    }

    public int getWarningStatus() {
        return this.warningStatus;
    }

    public void setWarningStatus(int warningStatus) {
        this.warningStatus = warningStatus;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return this.nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return this.sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCard() {
        return this.card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getQuestion() {
        return this.question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return this.answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getRegistDate() {
        return this.registDate;
    }

    public void setRegistDate(String registDate) {
        this.registDate = registDate;
    }

    public String getLoginDate() {
        return this.loginDate;
    }

    public void setLoginDate(String loginDate) {
        this.loginDate = loginDate;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getGameGold() {
        return this.gameGold;
    }

    public void setGameGold(int gameGold) {
        this.gameGold = gameGold;
    }

    public int getExpeGold() {
        return this.expeGold;
    }

    public void setExpeGold(int expeGold) {
        this.expeGold = expeGold;
    }

    public double getLevelScore() {
        return this.levelScore;
    }

    public void setLevelScore(double levelScore) {
        this.levelScore = levelScore;
    }

    public int getLevel() {
        return this.level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getOverflow() {
        return this.overflow;
    }

    public void setOverflow(int overflow) {
        this.overflow = overflow;
    }

    public int getGameScore() {
        return this.gameScore;
    }

    public void setGameScore(int gameScore) {
        this.gameScore = gameScore;
    }

    public int getPhotoId() {
        return this.photoId;
    }

    public void setPhotoId(int photoId) {
        this.photoId = photoId;
    }

    public int getBorrow() {
        return this.borrow;
    }

    public void setBorrow(int borrow) {
        this.borrow = borrow;
    }

    public int getExpeScore() {
        return this.expeScore;
    }

    public void setExpeScore(int expeScore) {
        this.expeScore = expeScore;
    }

    public int getLastDeskId() {
        return this.lastDeskId;
    }

    public void setLastDeskId(int lastDeskId) {
        this.lastDeskId = lastDeskId;
    }

    public int getShutupStatus() {
        return this.shutupStatus;
    }

    public void setShutupStatus(int shutupStatus) {
        this.shutupStatus = shutupStatus;
    }

    public int getDisplayStatus() {
        return this.displayStatus;
    }

    public void setDisplayStatus(int displayStatus) {
        this.displayStatus = displayStatus;
    }

    public int getLastGame() {
        return this.lastGame;
    }

    public void setLastGame(int lastGame) {
        this.lastGame = lastGame;
    }

    public int getCurrentGameScore() {
        return this.currentGameScore;
    }

    public void setCurrentGameScore(int currentGameScore) {
        this.currentGameScore = currentGameScore;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getExpiryNum() {
        return this.expiryNum;
    }

    public void setExpiryNum(int expiryNum) {
        this.expiryNum = expiryNum;
    }

    public int getPayMoney() {
        return this.payMoney;
    }

    public void setPayMoney(int payMoney) {
        this.payMoney = payMoney;
    }

    public int getPromoterId() {
        return this.promoterId;
    }

    public void setPromoterId(int promoterId) {
        this.promoterId = promoterId;
    }

    public String getPromoterName() {
        return this.promoterName;
    }

    public void setPromoterName(String promoterName) {
        this.promoterName = promoterName;
    }
    public int getUsercontrol() {
        return usercontrol;
    }
    public void setUsercontrol(int usercontrol) {
        this.usercontrol = usercontrol;
    }
    public String toString() {
        return "User [username=" + this.username + ", nickname=" + this.nickname + ", name=" + this.name + ", sex=" + this.sex + ", password=" + this.password + ", phone=" + this.phone + ", card=" + this.card + ", question=" + this.question + ", answer=" + this.answer + ", registDate=" + this.registDate + ", loginDate=" + this.loginDate + ", status=" + this.status + ", overflow=" + this.overflow + ", gameGold=" + this.gameGold + ", expeGold=" + this.expeGold + ", levelScore=" + this.levelScore + ", gameScore=" + this.gameScore + ", expeScore=" + this.expeScore + ", level=" + this.level + ", photoId=" + this.photoId + ", lastDeskId=" + this.lastDeskId + ", shutupStatus=" + this.shutupStatus + ", lastGame=" + this.lastGame + ", type=" + this.type + ", expiryNum=" + this.expiryNum + ", payMoney=" + this.payMoney + ", promoterId=" + this.promoterId + ", promoterName=" + this.promoterName + ", borrow=" + this.borrow + ", displayStatus=" + this.displayStatus + ", currentGameScore=" + this.currentGameScore + "]";
    }

}
